package com.ruoyi.user.api.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 消息中心对象 message
 * 
 * @author ruoyi
 * @date 2024-09-13
 */

public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** vestIn */
    @Excel(name = "vestIn")
    private String vestIn;

    /** 用户 */
    @Excel(name = "用户")
    private Long uid;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String title;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 通知日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通知日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private Long read;

    /** 删除状态 */
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public String getVestIn() {
        return vestIn;
    }

    public void setVestIn(String vestIn) {
        this.vestIn = vestIn;
    }

    public Date getTime()
    {
        return time;
    }
    public void setRead(Long read) 
    {
        this.read = read;
    }

    public Long getRead() 
    {
        return read;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    public Message() {
    }

    public Message(Long id, Long uid, String title, String content, Date time, Long read, Long deleted) {
        this.id = id;
        this.uid = uid;
        this.title = title;
        this.content = content;
        this.time = time;
        this.read = read;
        this.deleted = deleted;
    }

    public Message(Long uid, String title, String content,String vestIn, Date time) {
        this.uid = uid;
        this.title = title;
        this.content = content;
        this.time = time;
        this.vestIn = vestIn;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", vestIn='" + vestIn + '\'' +
                ", uid=" + uid +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", time=" + time +
                ", read=" + read +
                ", deleted=" + deleted +
                '}';
    }
}
